package com.water.controller;

import com.water.result.Result;
import com.water.service.MeterService;
import com.water.vo.MeterVo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: city_water
 * @description:
 * @author: lydms
 * @create: 2024-05-11 15:53
 **/

@RestController
@RequestMapping("/user/meter")
@Api(value = "水表信息", tags = {"水表信息"})
public class MeterController {

    @Autowired
    private MeterService meterService;

    /**
     * 查创建水表信息
     * @return
     */
    @GetMapping("/getInfo")
    @ApiOperation(value = "查询水表信息")
    public Result<MeterVo> getInfo(){

     MeterVo meterVo =  meterService.getInfo();

        return Result.success(meterVo);
    }

}
